home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 December / PCWorld_2007-12_cd.bin / domacnost a kancelar / autoit / autoit-v3-setup.exe / Examples / Helpfile / _IEIsFrameSet.au3 < prev    next >
Text File  |  2007-09-08  |  672b  |  18 lines

  1. ; *******************************************************
  2. ; Example 1 - Display the frameset example, get frame collection,
  3. ;                check number of frames, display number of frames or iFrames present
  4. ; *******************************************************
  5. ;
  6. #include <IE.au3>
  7. $oIE = _IE_Example ("frameset")
  8. $oFrames = _IEFrameGetCollection ($oIE)
  9. $iNumFrames = @extended
  10. If $iNumFrames > 0 Then
  11.     If _IEIsFrameSet ($oIE) Then
  12.         MsgBox(0, "Frame Info", "Page contains " & $iNumFrames & " frames in a FrameSet")
  13.     Else
  14.         MsgBox(0, "Frame Info", "Page contains " & $iNumFrames & " iFrames")
  15.     EndIf
  16. Else
  17.     MsgBox(0, "Frame Info", "Page contains no frames")
  18. EndIf